package com.ctint.petdida;

import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;

import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.StatusLine;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import org.json.JSONArray;
import org.json.JSONObject;


import greendroid.app.GDActivity;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.sqlite.SQLiteDatabase;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Toast;

public class PetDidaMain extends GDActivity {
	
	// Variables para Shared Preferences
	public static final String PRES_FILE = "myPrefsFile";
	public static final String KEY = "HideWelcome";
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setActionBarContentView(R.layout.main);
     
		SharedPreferences myPreferences = getSharedPreferences( PRES_FILE, Context.MODE_PRIVATE);
		SharedPreferences.Editor myEditor = myPreferences.edit();
		myEditor.putBoolean(KEY, true);
        
	}		
	

	/** Function Action Button **/
    public void actionButtonsMain(View view){
    	Intent intent;
    	switch (view.getId()) {
			case R.id.btn_veterinaria:
				intent = new Intent(this, ListVeterinarias.class);
				startActivity(intent);
				break;
			case R.id.btn_refugio:
				intent = new Intent(this, ListRefugios.class);
				startActivity(intent);
				break;
		default:
			break;
		}
    }
}